package com.atguigu.petstore.feign.shop;

import com.atguigu.petstore.common.result.Result;
import com.atguigu.petstore.shop.entity.ShopCategory;
import com.atguigu.petstore.shop.entity.ShopProduct;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author lfy
 * @Description
 * @create 2023-09-28 10:28
 */
@FeignClient(value = "shop-service")
public interface ShopFeignClient {


    @GetMapping("/rpc/shop/category/tree")
    Result<List<ShopCategory>> getShopCategoryTree();

    @GetMapping("/rpc/shop/product/seckill")
    Result<List<ShopProduct>> getSeckillProduct();


    @GetMapping("/rpc/shop/product/ranks")
    Result<List<ShopProduct>> getRankProduct();


}
